<div class="form" style="background:url('<?php echo Yii::app()->request->baseUrl; ?>/themes/hachimaki/imagens/bg5.png') repeat scroll top center transparent; height:auto; padding-top:8%; width:370px; text-align:left; line-height: 1; border: 3px solid #CCCCCC; display: block; z-index:1;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cad-turma-form',
	'enableAjaxValidation'=>false,
)); ?>
	<h1 class="titulo_login" style="color: #444444;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 34px;
    margin-top: -53px;
    text-align: center;
    width: 100%;
    z-index: -10000;">Cadastro de Turma</h1>
    
	<p class="note">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row" style="text-align:right; width:360px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cod_periodo'); ?>
                <?php echo $form->dropDownList($model,'cod_periodo', Lookup::items('Perial')); ?>
		<?php echo $form->error($model,'cod_periodo'); ?>
	</div>
	<div class="row" style="text-align:right; width:360px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cod_curso'); ?>
                <?php echo $form->dropDownList($model,'cod_curso', cad_cursos::loadTableCursos()); ?>
		<?php echo $form->error($model,'cod_curso'); ?>
	</div>

	<div class="row" style="text-align:right; width:360px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'nome'); ?>
		<?php echo $form->textField($model,'nome',array('size'=>80,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'nome'); ?>
	</div>

	<div class="row" style="text-align:right; width:360px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'carga_hora'); ?>
		<?php echo $form->textField($model,'carga_hora',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'carga_hora'); ?>
	</div>

	<div class="row" style="text-align:right; width:360px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'numero_alunos'); ?>
		<?php echo $form->textField($model,'numero_alunos'); ?>
		<?php echo $form->error($model,'numero_alunos'); ?>
	</div>

	<div class="row" style="text-align:right; width:360px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'professor'); ?>
		<?php echo $form->dropDownList($model,'professor', cad_professor::loadTableProfessor()); ?>
		<?php echo $form->error($model,'professor'); ?>
	</div>

	<div class="row buttons" style="text-align:center; margin-bottom:0px; position:relative; clear:both; padding-top:8px;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Salvar' : 'Salvar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->